<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
		<meta charset="UTF-8">
	<title><?php echo ('[title]' == '['.'title'.']' ? C('WEBSITE_NAME') : '[title]');?></title>
	<meta name="viewport" content="initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="red" name="apple-mobile-web-app-status-bar-style">
	<meta name="format-detection" content="telphone=no">
	<link rel="stylesheet" href="/css/mall.css?modify=20161026">
	<link rel="stylesheet" href="/css/trade.css?modify=20161026">
	<link rel="stylesheet" href="/css/red.css">
	<script type="text/javascript">
	var require = {
		baseUrl: '/js',
		waitSeconds: 0,
		map: {
		  '*': {
			'css': '//cdn.bootcss.com/require-css/0.1.8/css.min.js',
			'text': '//cdn.bootcss.com/require-text/2.0.12/text.min.js'
		  }
		},
		shim: {
			swiper: ['jquery', 'css!//cdn.bootcss.com/Swiper/3.3.1/css/swiper.min.css'],
			lazyload: ['jquery'],
		},
		paths: {
            'jquery': '//cdn.bootcss.com/jquery/1.12.4/jquery.min',
			'template': 'template',
			'validatejs': '//cdn.bootcss.com/jquery-validate/1.15.0/jquery.validate.min',
			'weixinjs': 'https://res.wx.qq.com/open/js/jweixin-1.0.0',
			'lazyload': '//cdn.bootcss.com/jquery.lazyload/1.9.1/jquery.lazyload.min',
			'swiper': '//cdn.bootcss.com/Swiper/3.3.1/js/swiper.min',

			'mall/cart': 'h5.js?modify=20161026',
			'view/order/list': 'h5.js?modify=20161026',
			'view/balance': 'h5.js?modify=20161026',
			'module/cart/num': 'h5.js?modify=20161026',
			'order/address': 'h5.js?modify=20161026',
			'pay': 'h5.js?modify=20161026',
			'view/personal/edit': 'h5.js?modify=20161026',
			'view/personal/scoreDetail': 'h5.js?modify=20161026',
			'view/present/list': 'h5.js?modify=20161026',
			'view/score': 'h5.js?modify=20161026',
			'pay/express': 'h5.js?modify=20161026',
			'jsweixin': 'h5.js?modify=20161026',
			'skumodal': 'h5.js?modify=20161026',
			'customer_service': 'h5.js?modify=20161026',
			'order/refund': 'h5.js?modify=20161026',
			'model_pay_coupon': 'h5.js?modify=20161026',
			'login_modal': 'h5.js?modify=20161026',
			'member/collection': 'h5.js?modify=20161026',
            'pullfresh': 'h5.js?modify=20161026',
            'goods_list': 'h5.js?modify=20161026',
          	'search': 'h5.js?modify=20161026',
		}
	}
	</script>
	<?php if(IS_APP): ?><script type="text/javascript" src="/js/appcan.min.js"></script><?php endif; ?>
	<script data-main="/js/h5.js?modify=20161026" src="//cdn.bootcss.com/require.js/2.3.1/require.min.js"></script>
	<?php if(!APP_DEBUG){ require_once 'cs.php';echo '<img src="'._cnzzTrackPageView(1259294058).'" width="0" height="0" style="display:none;"/>'; } ?>
</head>
<body class="body-fixed-bottom">
	<div class="container">
		<div class="content">
			<div class="content-body">
				<ul class="js-goods-list sc-goods-list clearfix list size-3">
					<li><div class="empty-list list-finished"><p class="font-size-12">正在加载中...</p></div></li>
				</ul>
			</div>
		</div>
		<div class="js-footer footer">
	<div class="copyright">
		<div class="ft-links">
			<a href="/h5/mall" target="_blank">商城主页</a>
			<a href="/h5/list" target="_blank">全部商品</a>
			<a href="/h5/personal" target="_blank">会员中心</a>
			<a href="/h5/cart" target="_blank">购物车</a>
		</div>
		<a class="ft-copyright" target="_blank">
			<span class="company hide">兴业宝提供技术支持</span>
		</a>
	</div>
</div>
	</div>
	<div id="shop-nav">
	<div class="shop-nav nav-menu nav-menu-1 has-menu-3">
		<div class="nav-special-item nav-item">
			<a href="/h5/mall" class="home jump_link">主页</a>
		</div>
		<div class="nav-item">
			<a class="mainmenu" href="http://mp.weixin.qq.com/s?__biz=MzI0NTQ3NzM2Ng==&mid=100004787&idx=1&sn=cf78c5f8fc9bd47bbafa73295f68d5bb&chksm=694ca92a5e3b203c67ac6ff97bb4c607e71f1994f4053ebbe6890d80e3b348d7c44cf312bcc9#rd">
				<span class="mainmenu-txt">在线客服</span>
			</a>
		</div>
	 	<div class="nav-item">
			<a href="/h5/list" class="mainmenu">
	 			<span class="mainmenu-txt">全部商品</span>
	 		</a>
		</div>
	 	<div class="nav-item">
	 		<a href="/h5/personal" class="mainmenu">
	 			<span class="mainmenu-txt">会员中心</span>
	 		</a>
	 	</div>
	</div>
    <link rel="stylesheet" href="/css/shopnav.css?modify=20160921" type="text/css" />
</div>
	
	<script type="text/javascript">
	require(['goods_list'], function(gv){
        gv.start({
            url: '/h5/collection',
            container: '.js-goods-list',
            pullfresh: true
        });
        
        gv.onLongClick = function(){
        	var $li = $(this);
        	var id = $li.data('id');
        	$li.hide();
        	$.ajax({
        		url: '/h5/collection/delete',
        		type: 'post',
        		data: {goods_id: id},
        		dataType: 'json',
        		waitting: false,
        		success: function(){
        			$li.remove();
        		},
        		error: function(){
        			$li.show();
        		}
        	});
        }
    });
	require(['module/cart/num']);
</script>
</body>
</html>